Still DreamingCollection of Scripts for Snak IRC Client :: version 0.2 :: brumedutemps
Author

on Dalnet: brumedutemps
by Email: brumedutemps@mac.com

New in this Version

Version 0.2.1
Release on 2001.12.21
Fix Release of "In The Musicals" to Version 0.3.1

Content

This package includes two AppleScripts:
· Catcher in the Rye, version 0.7
· In The Musicals, version 0.3.1

Catcher in the Rye
"I just felt good, for a change," - J. D. Salinger

"Catcher in the Rye"  will let you filter spam into a special window, be it private messages or notices, thus preventing screen cluttering from excessive spam, especially if you are frequenting popular channels where ident is optional and spam regulation is minimal, and if your Snak client is set to open new query windows upon private messages. In order to recognize spam, "Catcher" browses in a list of spam-typical strings and recognizes messages that contain those strings, then moderates its judgment depending if the sender is in your contacts list and if you are already talking to the sender. In case of spam, it can also put the sender on ignore and send a ban mask to your channel if you are op.

Usage:
From the input field, type "/load catcher"

Display:
"Catcher" will redirect spam into a special window simply called "spam", with some additional info, such as the type of spam (either private message or notice), the numbers identifying the strings recognized, and the ip address of the sender that has been used if ignore and ban options are "on".

Customization:
It is possible to customize the strings that "Catcher" will recognize to tag a message or notice as spam. To do so please refer to the Control Panel written in the "Catcher" script. Basically, only the presence of the sender in your contacts list will have priority over spam identification of messages containing alpha and beta strings. It will also have priority over presence of gamma and lame strings, as will have the fact that you were already talking to the sender. The senders of lame strings, even detected as spam, are never ignored nor banned; only their messages are filtered.

Requirements:
Snak 4.8.1

In The Musicals
"What kind of magic is this?" - Björk

"In the Musicals" let you control basic iTunes playback directly from the input line in Snak without having to open iTunes window while chatting. The controls extend from usual playback and volume control, to playlist selection, shuffling and repeating options. The playing selection is based on id3 info you write in the input line, and "Musical" is also able of autocompleting partial requests.

"In the Musicals" may also be considered as a boosted sound request command, boosted from the fact that it uses id3 info instead of song filename to recognize the requests. It may broadcast (automatically or upon command) the tracks currently playing in iTunes, under the form of /me messages or !bang notices, which are both recognized by other "Musical" users on your channel who can automatically play the tracks you specify, giving that they have any song matching to your broadcasting info. The advantage over typical sound requests is that usually, mp3 filenames may greatly vary from a user to another, unlike id3 info written in the mp3 file if any.

Usage:

From the input field, type "/load musical", then:
play : start playback
play <artist><-doublespace-><title> : start playback with a specific song
play <title> : start playback with a specific song
play <artist> : start playback with a specific song
pause : pause playback
stop : stop playback
skip or next : skip playback to next song
back or prev : set back playback to previous song
info or id3 : display info from the current track to yourself only
broad or broadcast : broadcast (/me) the current track info to the current channel
send : send (!bang) the current track info to the current channel
up or volume up : increase the volume
down or volume down : decrease the volume
fineup or fine up : slightly increase the volume
finedown or fine down : slightly decrease the volume
shuffle or random : set the playback order to shuffle, reshuffle if already set to shuffle
noshuffle or norandom : set the playback order to linear
one or repeat one : set the repeat mode to the current track
all or repeat all : set the repeat mode to the whole playlist
repeat off : set the repeat mode to none
language : select the language used for broadcasting
library or playlist : select the (library) playlist used for playback

Usage of auto-completing:

For a simple example, we will use the famous song "La Isla Bonita" sung by Madonna.

Suppose that you have those four songs only in your playlist:
"Madonna. La Isla Bonita"
"Madonna. La Isla Bonita (live)"
"Madonna. La Isla Bonita (remix)"
"Madonna. This Used to be My Playground"
"Gloria Estefan. La Isla Bonita"
"Renaud. Adieu Minette"

You want to get the first song, which is the normal version.
"play madonna  la isla bonita" : play the desired song (1)
"play madonna  la isla bonita " : play any of the two special versions of "La Isla Bonita" (2)
"play madonna  la isla" : play any of the three versions of "La Isla Bonita" (3)
"play madonna" : play any of the songs from Madonna (4)
"play la isla bonita" : play either the desired song or the remake version (2)
"play la isla" : play any of the versions of "La Isla Bonita", including the remake version (4)
"play is" : play either of the versions of "La Isla Bonita" or "This Used to be My Playground" (5)
"play" : play any of the songs (6)

Display:

"Musical" may display, automatically or upon your request, three types of messages, in addition to the various status messages you may get after entering manual commands:

"Info", will only echo the track info to yourself, in the active window.
"Broadcast", detected by the broadreceiver option, will broadcast the track info under the form of a /me message to the channel, complete with random strings you may specify to create some variation.
"Send", detected by the sendreceiver option, sends a !bang notice containing the track info to the channel.
"Broadcast" and "Send" will transmit information to the current channel or query if you manually request them from the input field. They will transmit information to the channel set in the script if you set the broadcaster and sender options on, for automatic transmission.

Customization:

It is possible to customize various settings in "Musical", directly from the Control Panel written in the script. You will probably want to customize the phrases used to announce broadcasts. The broadcast language may be selected via dialog, on the first run of the script or later on via the "language" command. The same is true with the "library" or "playlist" command, which let you automatically select French or English libraries, or any other library (other languages) or playlists in addition to your library.

You can also easily set on or off the various transmitting options available in "Musical". The input option is always set on.

Requirements:

Snak 4.8.1
iTunes 2.0.3

Improvements:

Version 0.3.1
Fixed bug when playing <artist> <song> as first command on Musical startup

Version 0.3
Added trackname and artistname completion functionality to play <> commands
Added play <title> command
Added play <artist> command
Added trackname and artistname completion functionality to play <> commands
Added language support from the command line and on first run
Added broadcast strings for french and english languages
Added language support for iTunes and playlist selection from the command line and on first run
Added volume tuning and volume finetuning commands
Changed double-space syntax directly after commands for single-space
Changed function of library command and added playlist command
Added reshuffling functionality to shuffle command
Added stop command (different from pause), let you change playlist on play command
Fixed bug when playing <artist> <song> and iTunes' state was not playing